/*   **********************************************************************  **
 **   Copyright notice                                                       **
 **                                                                          **
 **   (c) 2009, Around(J2)ME				                                 **
 **   All rights reserved.                                                   **
 **                                                                          **
 **   This program and the accompanying materials are made available under   **
 **   the terms of the New BSD License which accompanies this    			 **
 **   distribution.											                 **
 **   A copy is found in the textfile LICENSE.txt							 **
 **                                                                          **
 **   This copyright notice MUST APPEAR in all copies of the file!           **
 **                                                                          **
 **   Main developers:                                                       **
 **     Juri Strumpflohner		http://blog.js-development.com	             **
 **		Matthias Braunhofer		http://matthias.jimdo.com                    **
 **                                                                          **
 **  **********************************************************************  */

package com.aroundj2me.utility;

import java.io.IOException;

import javax.microedition.lcdui.Image;

/**
 * Usage:
 * 1st the new image has to be declared in the ImageLoader class:
 * 		public static String MY_NEW_IMG = "/<imagename>.<extension>";
 * 
 * The class which wants to load the Image then has just to call:
 * 		ImageLoader.getImage(ImageLoader.MY_NEW_IMG);
 *
 */
public class ImageLoader {
	
		public static String MPS_LOGO = "/mps_logo.png";
		public static String ANTS_LOGO = "/bug.png";
		public static String CHAT_LOGO="/chat_logo.png";
		public static String PEOPLE_LOGO="/people_logo.png";
		
		public static String CREATE_POST = "/createpost.png";
		public static String MY_POSTS = "/myposts.png";
		public static String POST = "/post.png";
		public static String GET_POSTS = "/retrieveposts.png";
		public static String CELL_POSTS = "/cell_posts.png";
		public static String GLOBE = "/globe.png";
		public static String USER = "/user.png";
		public static String USER_TEST = "/user_test.jpg";
		public static String SEARCH = "/search.png";
		public static String NEXT = "/next.png";
		
		public static String PLUS = "/plus.png";
		public static String EYES = "/eyes.png";
		public static String MY = "/my.png";
		
		public static String WARNING = "/warning.png";
		public static String WARNINGBIG = "/warningBIG.png";
		public static String QUESTION = "/question.png";
		public static String INFO = "/info.gif";
		public static String INFOBIG="/Info.png";
		public static String SAVE = "/save.png";
		public static String DELETE = "/del.png";
		public static String SETTINGS = "/settings.png";
		
		//for contactlist
		
		public static String CONTACTLIST = "/contact_list.png";
		public static String PEOPLESEARCH = "/people_search.png";
		public static String LOCATIONSEARCH = "/location_search.png";
		public static String CLOSEFRIEND = "/close_friend.png";
		public static String NOFRIEND = "/no_friend.png";
		public static String VIRTUALFRIEND = "/virtual_friend.png";
		public static String PATH = "/path.png";	
		public static String PATHLOGO = "/path_logo.png";
		
		public static String NETONLINEC="/on-c.png";
		public static String NETONLINEV="/on-v.png";
		public static String OFFLINEC="/off-c.png";
		public static String OFFLINEV="/off-v.png";
		public static String AREAC="/area_c.png";
		public static String AREAV="/area_v.png";
		public static String BLUETOOTH="/bluetooth.png";
		

		//MPS just for testing
		public static String STARON = "/star.gif";
		public static String STAROFF = "/staroff.gif";
	/*
	 * -----------------------------------------------------------------------
	 */
	
	/**
	 * Static method which loads the images
	 * @param name
	 * @return
	 */
	public static Image getImage(String name){
		Image img = null;
		try {
			img = Image.createImage(name);
		} catch (IOException e) {
			System.out.println("Unable to load "+name);
		}
		return img;
	}
	
}
